<?php
$d=new DateTime();
print_r($d);
echo $d->format(format: "北京时间：Y-m-d H：i：s.v e\n");
echo"-----------\n";
$a=[new DateTime(),
    new DateTime(datetime:"now"),
    new DateTime(datetime:"today"),
    new DateTime(datetime:"yesterday"),
    new DateTime(datetime:'2025-9-1'),
    new DateTime(datetime:'2025-9-1 8:20:30'),
    ];
foreach($a as $d){
    echo $d->format("北京时间：Y-m-d H：i：s.v e\n");
}

$second=(new DateTime(datetime:'1970-1-1'))->getTimestamp();
print_r($second);
echo 8*60*60,"\n";
$d=new DateTime(datetime:'@0');
echo $d->format(format:"世界协调时：Y年m月d日 H:i:s.v e\n");


function lunarCalender(int $year,int $month):void{

}
lunarCalender(2025,10);